<template>
  <div>
    <template v-if="type !== 'textarea'">
      <input :type="type" class="form-control" v-bind="$attrs"/>
    </template>
    <template v-else>
      <textarea class="form-control" v-bind="$attrs"></textarea>
    </template>
  </div>
</template>

<script>
import props from "./props";
export default {
  name: "Input",
  props,
};
</script>